//
// Created by Administrator on 2020/7/20.
//

#include <iostream>

int main() {

    using std::cin;
    using std::cout;

    char ch = '@';
    do {
        cin.get(ch);

        if (isalpha(ch))
            cout << ch << " is alpha\n";
        if (isdigit(ch))
            cout << ch << " is num\n";
        if (ispunct(ch))
            cout << ch << " is punct\n";

    } while (ch != '@');

    return 0;
}